package com.smartfactory.sail.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smartfactory.sail.entity.OrderItem;
import com.smartfactory.sail.entity.Picking;
import com.smartfactory.sail.vo.PageParam;
import com.smartfactory.sail.vo.picking.CommitReq;
import com.smartfactory.sail.vo.picking.PickInfoResp;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-26
 */
public interface IPickingService extends IService<Picking> {

    boolean saveByOrderItem(List<OrderItem> orderItems);

    IPage<Picking> listPageByWhere(PageParam pageParam, Map<String,Object> queryParam);

    PickInfoResp getPickingInfoByOrderItemId(Long id);

    boolean commit(List<CommitReq> pickingInfoDtos) throws Exception;
    boolean commit(Long recordId) throws Exception;

    void creatPicking();

}
